﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZHDJ.Core.Util;
using ZHDJ.Data.Models.Box;

namespace ZHDJ.Data.Initializer
{
    public static class PowerInit
    {

        public static List<Power> GetPowers()
        {
            var powers = new List<Power>
            {
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreUserView",
                    Title = "浏览用户列表",
                    GroupName = "CoreUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreUserNew",
                    Title = "新增用户",
                    GroupName = "CoreUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreUserEdit",
                    Title = "编辑用户",
                    GroupName = "CoreUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreUserDelete",
                    Title = "删除用户",
                    GroupName = "CoreUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreUserChangePassword",
                    Title = "修改用户登陆密码",
                    GroupName = "CoreUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRoleView",
                    Title = "浏览角色列表",
                    GroupName = "CoreRole"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRoleNew",
                    Title = "新增角色",
                    GroupName = "CoreRole"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRoleEdit",
                    Title = "编辑角色",
                    GroupName = "CoreRole"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRoleDelete",
                    Title = "删除角色",
                    GroupName = "CoreRole"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRoleUserView",
                    Title = "浏览角色用户列表",
                    GroupName = "CoreRoleUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRoleUserNew",
                    Title = "向角色添加用户",
                    GroupName = "CoreRoleUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRoleUserDelete",
                    Title = "从角色中删除用户",
                    GroupName = "CoreRoleUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreOnlineView",
                    Title = "浏览在线用户列表",
                    GroupName = "CoreOnline"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreConfigView",
                    Title = "浏览全局配置参数",
                    GroupName = "CoreConfig"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreConfigEdit",
                    Title = "修改全局配置参数",
                    GroupName = "CoreConfig"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreMenuView",
                    Title = "浏览菜单列表",
                    GroupName = "CoreMenu"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreMenuNew",
                    Title = "新增菜单",
                    GroupName = "CoreMenu"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreMenuEdit",
                    Title = "编辑菜单",
                    GroupName = "CoreMenu"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreMenuDelete",
                    Title = "删除菜单",
                    GroupName = "CoreMenu"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreLogView",
                    Title = "浏览日志列表",
                    GroupName = "CoreLog"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreLogDelete",
                    Title = "删除日志",
                    GroupName = "CoreLog"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreTitleView",
                    Title = "浏览职务列表",
                    GroupName = "CoreTitle"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreTitleNew",
                    Title = "新增职务",
                    GroupName = "CoreTitle"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreTitleEdit",
                    Title = "编辑职务",
                    GroupName = "CoreTitle"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreTitleDelete",
                    Title = "删除职务",
                    GroupName = "CoreTitle"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreTitleUserView",
                    Title = "浏览职务用户列表",
                    GroupName = "CoreTitleUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreTitleUserNew",
                    Title = "向职务添加用户",
                    GroupName = "CoreTitleUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreTitleUserDelete",
                    Title = "从职务中删除用户",
                    GroupName = "CoreTitleUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreDeptView",
                    Title = "浏览部门列表",
                    GroupName = "CoreDept"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreDeptNew",
                    Title = "新增部门",
                    GroupName = "CoreDept"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreDeptEdit",
                    Title = "编辑部门",
                    GroupName = "CoreDept"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreDeptDelete",
                    Title = "删除部门",
                    GroupName = "CoreDept"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreDeptUserView",
                    Title = "浏览部门用户列表",
                    GroupName = "CoreDeptUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreDeptUserNew",
                    Title = "向部门添加用户",
                    GroupName = "CoreDeptUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreDeptUserDelete",
                    Title = "从部门中删除用户",
                    GroupName = "CoreDeptUser"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CorePowerView",
                    Title = "浏览权限列表",
                    GroupName = "CorePower"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CorePowerNew",
                    Title = "新增权限",
                    GroupName = "CorePower"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CorePowerEdit",
                    Title = "编辑权限",
                    GroupName = "CorePower"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CorePowerDelete",
                    Title = "删除权限",
                    GroupName = "CorePower"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRolePowerView",
                    Title = "浏览角色权限列表",
                    GroupName = "CoreRolePower"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "CoreRolePowerEdit",
                    Title = "编辑角色权限",
                    GroupName = "CoreRolePower"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "PartyEduSpecialView",
                    Title = "浏览专题管理列表",
                    GroupName = "PartyEduSpecial"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "PartyEduSpecialAdd",
                    Title = "增加专题",
                    GroupName = "PartyEduSpecial"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "PartyEduSpecialEdit",
                    Title = "编辑专题",
                    GroupName = "PartyEduSpecial"
                }
                ,
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "PartyEduSpecialDelete",
                    Title = "删除专题",
                    GroupName = "PartyEduSpecial"
                } ,
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "PartyEduSubjectView",
                    Title = "浏览题目管理列表",
                    GroupName = "PartyEduSubject"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "PartyEduSubjectAdd",
                    Title = "增加题目",
                    GroupName = "PartyEduSubject"
                },
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "PartyEduSubjectEdit",
                    Title = "编辑题目",
                    GroupName = "PartyEduSubject"
                }
                ,
                new Power
                {
                    ID = StringHelper.NewID,
                    Name = "PartyEduSubjectDelete",
                    Title = "删除题目",
                    GroupName = "PartyEduSubject"
                }
            };

            return powers;
        }

    }
}
